projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a33e32e
)
Revert "ngl: Remove duplicate check"
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 19 Mar 2021 17:17:02 +0000
(13:17 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 19 Mar 2021 17:17:02 +0000
(13:17 -0400)
This reverts commit
1fd534ef1ee0f5e62dbdcf1f82ed7dc287d77d13
.
This change revealed that we are not treating damage regions
correctly, and we regularly end up with
gsk/ngl/gsknglrenderer.c
patch
|
blob
|
history
diff --git
a/gsk/ngl/gsknglrenderer.c
b/gsk/ngl/gsknglrenderer.c
index 4c6a077ab3518bcbbb03d9b5f48ba9f76735e25e..66edc98d5d98533902507a55c900474ab9cd7964 100644
(file)
--- a/
gsk/ngl/gsknglrenderer.c
+++ b/
gsk/ngl/gsknglrenderer.c
@@
-173,7
+173,10
@@
get_render_region (GdkSurface *surface,
*/
damage = gdk_draw_context_get_frame_region (GDK_DRAW_CONTEXT (context));
- /* If the extents match the full-scene, return NULL */
+ if (cairo_region_contains_rectangle (damage, &whole_surface) == CAIRO_REGION_OVERLAP_IN)
+ return NULL;
+
+ /* If the extents match the full-scene, do the same as above */
cairo_region_get_extents (damage, &extents);
if (gdk_rectangle_equal (&extents, &whole_surface))
return NULL;